<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
  <script>
    //1.利用控制台排错：最基本好用的方法。只要细心，养成边写代码边查看效果的习惯，就能成为大神。
    //代码块
    console.log(111); //111
    //代码块2
    console.log(222); //222
    //代码块3
    function show() {
      console.log("进来了");
    }

    show();
    console.log(333); //不打印

    //2.打断点:打断点，刷新页面，下一步下一步
    for (var i = 0; i < 6; i++) {
      console.log(i);
      console.log(num);
    }

    console.log(i);
  </script>
</html>
